package com.lark.web.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import com.lark.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.lark.common.utils.log.annotation.FieldRemark;
import com.lark.common.utils.log.annotation.LogField;
import com.lark.common.annotation.Excel;

/**
 * 存储卷对象 storage_volume
 * @author fei
 * @email zhangfei0210@163.com
 * @date 2024-08-25
 */
@Data
public class StorageVolume extends BaseEntity<StorageVolume>
{
    private static final long serialVersionUID = 1L;

    /** 卷名称 */
    @Excel(name = "卷名称")
    @LogField
    @FieldRemark(name = "卷名称",field = "volumeName")
    private String volumeName;

    /** 卷模式 */
    @Excel(name = "卷模式")
    @LogField
    @FieldRemark(name = "卷模式",field = "driver")
    private String driver;

    /** 卷创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "卷创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @LogField
    @FieldRemark(name = "卷创建时间",field = "volumeCreateTime")
    private Date volumeCreateTime;

    /** 卷创建时间开始 */
    private String beginVolumeCreateTime;

    /** 卷创建时间结束 */
    private String endVolumeCreateTime;
	
    /** 卷范围 */
    @Excel(name = "卷范围")
    @LogField
    @FieldRemark(name = "卷范围",field = "scope")
    private String scope;
    /**
     * 请求参数
     */
    private String ip;

    public void setIp(String ip) {
        this.ip = ip;
    }
    public String getIp() {
        return ip;
    }

    public void setVolumeName(String volumeName)
    {
        this.volumeName = volumeName;
    }

    public String getVolumeName() 
    {
        return volumeName;
    }

    public void setDriver(String driver) 
    {
        this.driver = driver;
    }

    public String getDriver() 
    {
        return driver;
    }

    public void setVolumeCreateTime(Date volumeCreateTime) 
    {
        this.volumeCreateTime = volumeCreateTime;
    }

    public Date getVolumeCreateTime() 
    {
        return volumeCreateTime;
    }

    public void setScope(String scope) 
    {
        this.scope = scope;
    }

    public String getScope() 
    {
        return scope;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("volumeName", getVolumeName())
            .append("driver", getDriver())
            .append("volumeCreateTime", getVolumeCreateTime())
            .append("scope", getScope())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createDept", getCreateDept())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("updateIp", getUpdateIp())
            .append("version", getVersion())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
